package net.hvacapp.cmvrfforandroid.manager;

import net.hvacapp.cmvrfforandroid.model.UserProfileData;

/**
 * Created by zhangnorman on 15/7/11.
 */
public class AccountManager {

    private static AccountManager mInstance = null;

    private UserProfileData userInfo;

    private String token;

    // 懒汉式单例
    public static synchronized AccountManager getInstance() {
        if (mInstance == null)
            mInstance = new AccountManager();
        return mInstance;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public void logout() {
        token = "";
    }


    public UserProfileData getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserProfileData userInfo) {
        this.userInfo = userInfo;
    }


}
